package constructor.adaptor.obj;

public class VoltageAdaptor implements Voltage5V {

    private Voltage220V voltage220V;

    public VoltageAdaptor(Voltage220V voltage220V) {
        this.voltage220V = voltage220V;
    }

    public void setVoltage220V(Voltage220V voltage220V) {
        this.voltage220V = voltage220V;
    }

    @Override
    public int output5V() {
        int src = voltage220V.output220V();
        int dstV = src / 44;
        return dstV;
    }
}
